#ifndef OPANEL_H
#define OPANEL_H

#include <math.h>

#include <QWidget>
#include <QPaintEvent>
#include <QMouseEvent>
#include <QResizeEvent>
#include <QPainter>
#include <QPaintEngine>
#include <QtDBus>

#include <QWidget>
#include <QPixmap>

#include <QColor>
#include <QRect>
#include <QList>
#include <QTimer>
#include <QPolygon>
#include <QRegion>


#include "pWidget.h"


struct point {
    int x,y;
};

class oPanel : public QWidget {
    Q_OBJECT
    public:
        oPanel(QWidget * parent = 0);
        ~oPanel();
        void addWidget(QString w);

    protected:
        void paintEvent(QPaintEvent * event);
        void resizeEvent(QResizeEvent * event);
        void mousePressEvent(QMouseEvent * event);

    private:
        QList <QWidget * > listWidget;
        bool down;
        QTimer * tanimation;
        void showNotify();
        QNotification * notify;

    private slots:
        void animationUp();
        void animationDown();
        void newNotify();

};

#endif // OPANEL_H
